package com.songlanyun.modules.appconfig.controller.api;

import com.songlanyun.common.utils.R;
import com.songlanyun.modules.appconfig.entity.AppConfig;
import com.songlanyun.modules.appconfig.service.AppConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * app配置
 */
@RestController
@RequestMapping("api/app/config")
public class AppConfigApiController {
    @Autowired
    private AppConfigService appConfigService;

    /**
     * 信息
     */
    @GetMapping("/info")
    public R info() {

        AppConfig appConfig = appConfigService.getOne();
        return R.ok().put("data", appConfig);
    }

}
